/*
 * CHS.h
 *
 *  Created on: 21/10/2011
 *      Author: utn_so
 */

#ifndef CHS_H_
#define CHS_H_

#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "configLoader.h"

typedef struct CHS {
	uint16_t cilindro;
	uint8_t cabeza;
	uint16_t sector;
} __attribute__((__packed__)) t_direccion_fisica;

extern tipoConfigPPD configuracion;
uint16_t tiempo_pista(uint16_t inicio, uint16_t fin);
t_direccion_fisica obtener_dir_fis(uint16_t dir_logica);

#endif /* CHS_H_ */
